# $OpenBSD: Makefile,v 1.7 2017/06/03 09:57:19 ajacoutot Exp $

USE_WXNEEDED=		Yes

COMMENT=		document viewer for the MATE desktop

CATEGORIES=		graphics

SHARED_LIBS +=  atrildocument             3.0 # 3.0
SHARED_LIBS +=  atrilview                 3.0 # 3.0

MATE_PROJECT=		atril
REVISION=		3

# GPLv2
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB += EGL GL ICE SM X11 X11-xcb Xcomposite Xcursor Xdamage
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender Xt Xxf86vm bz2
WANTLIB += c crypto drm epoxy expat ffi fontconfig freetype gbm
WANTLIB += gio-2.0 glapi glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += iconv intl m pcre pixman-1 pthread pthread-stubs sqlite3
WANTLIB += ${LIBCXX} xcb xcb-dri2 xcb-glx xcb-render xcb-shm xcb-xfixes
WANTLIB += archive atk-1.0 atk-bridge-2.0 atspi avahi-common
WANTLIB += cairo-gobject cairo caja-extension dbus-1 djvulibre
WANTLIB += enchant ${LIBECXX} gailutil-3 gcrypt gdk-3 gdk_pixbuf-2.0
WANTLIB += gmp gpg-error graphite2 gs gstapp-1.0 gstaudio-1.0
WANTLIB += gstbase-1.0 gstfft-1.0 gstpbutils-1.0 gstreamer-1.0 gsttag-1.0
WANTLIB += gstvideo-1.0 gtk-3 gxps harfbuzz-icu harfbuzz hogweed hyphen
WANTLIB += icudata icui18n icuuc idn2 javascriptcoregtk-4.0 jpeg lcms2
WANTLIB += lz4 lzma nettle notify openjp2 orc-0.4 p11-kit pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 png poppler-glib poppler secret-1
WANTLIB += soup-2.4 spectre tasn1 tiff unistring webkit2gtk-4.0 webp xml2
WANTLIB += z xslt

MODULES=		devel/dconf \
			x11/gnome

LIB_DEPENDS=		databases/sqlite3 \
			multimedia/gstreamer1/plugins-base \
			print/poppler \
			print/libspectre \
			graphics/djvulibre \
			graphics/libgxps \
			textproc/enchant \
			textproc/icu4c \
			www/webkitgtk4 \
			x11/mate/caja
BUILD_DEPENDS=		devel/gsettings-desktop-schemas
RUN_DEPENDS=		devel/gsettings-desktop-schemas

MODGNOME_TOOLS=		desktop-file-utils gtk-update-icon-cache yelp

CONFIGURE_STYLE=	gnu

.include <bsd.port.mk>
